package com.nineclock.sign.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SignInfoDTO implements Serializable {

    private Long id;//主键
    private Long companyId;//公司id
    private Long companyUserId;//员工id
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime; //创建时间
    private String createDate; //签到时间
    private String createMonth;//签到月份
    private BigDecimal lat; //纬度
    private BigDecimal lng;//经度
    public SignInfoDTO(BigDecimal lat, BigDecimal lng, String address, String remark, String visit, String imei, String images) {
        this.lat = lat;
        this.lng = lng;
        this.address = address;
        this.remark = remark;
        this.visit = visit;
        this.imei = imei;
        this.images = images;
    }

    private String address;//签到地址
    private String remark;//备注
    private String visit;//拜访客户端名称
    private String imei; //手机imei标识
    private String images;//图片列表 , 使用逗号分割
    //private MultipartFile images;
    private String dayCount; //当日签到次数
    private String monthCount; //当月签到次数
    private List<String> signPictureUrlList;
    private String userName; //用户名
}
